﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Repository.RepositoryExtension
{
    public interface IPageResult
    {
        string Sorting { get; set;}

        public int PageIndex { get; set; }

        public int PageSize { get; set; }

        bool OrderByDescending { get; set; }

    }

    public class PageResult : IPageResult
    {

        public int PageIndex { get; set; } = 1;


        public int PageSize { get; set; } = 10;


        public string Sorting { get; set; }


        public bool OrderByDescending { get; set; }
    }
}
